package com.ruoyi.health.api;


import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.health.api.factory.RemoteHealthFallbackFactory;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "remoteHealthService", value = ServiceNameConstants.HEALTH_SERVICE, fallbackFactory = RemoteHealthFallbackFactory.class)
public interface RemoteHealthService {

    @PostMapping("/healthReportStatistics/task/createHealthReportTask")
    void createHealthReportTask(@Param("date")String date,@RequestHeader(SecurityConstants.FROM_SOURCE) String source);

    @PostMapping(value = "/healthReportStatistics/task/createHealthReportByWeekTasK")
    void createHealthReportByWeekTasK(@Param("date")String date,@RequestHeader(SecurityConstants.FROM_SOURCE) String source);

    @PostMapping(value = "/healthReportStatistics/task/createHealthReportByMonthTasK")
    void createHealthReportByMonthTasK(@Param("date")String date,@RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}


